#include "stdlib.h"
#include "stdio.h"

#define SUCCESS 1
#define FAILURE -1

#define BASETYPE 0 //char:0, int:1

typedef char BaseType;
typedef int Status; //success:1, failure:-1

typedef struct Node {
	BaseType data;
	struct Node* next;
	struct Node* prior;
}*pNode,LNode;

pNode getNode(pNode List, int index);
Status getElement(pNode List, int index, BaseType* e);
int getLength(pNode List);
Status insertNode(pNode List, int location, BaseType data);
Status deleteNode(pNode List, int location, BaseType *e);
pNode createLinkList(char* filename);
void printNode(pNode p);
void printList(pNode List);
